import { createRouter, createWebHistory } from 'vue-router';
import Home from '../components/StudentManage.vue';
import Login from '../components/UserLogin.vue';
import UserProfile from '../components/UserProfile.vue';

const routes = [
  { path: '/', redirect: '/login' },
  { path: '/login', component: Login },
  { path: '/home', component: Home },
  { path: '/profile', component: UserProfile },
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;